package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.YgScoreMapper;
import com.ruoyi.system.domain.YgScore;
import com.ruoyi.system.service.IYgScoreService;

/**
 * 员工评分Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-28
 */
@Service
public class YgScoreServiceImpl implements IYgScoreService 
{
    @Autowired
    private YgScoreMapper ygScoreMapper;

    /**
     * 查询员工评分
     * 
     * @param scoreId 员工评分主键
     * @return 员工评分
     */
    @Override
    public YgScore selectYgScoreByScoreId(Long scoreId)
    {
        return ygScoreMapper.selectYgScoreByScoreId(scoreId);
    }

    /**
     * 查询员工评分列表
     * 
     * @param ygScore 员工评分
     * @return 员工评分
     */
    @Override
    public List<YgScore> selectYgScoreList(YgScore ygScore)
    {
        return ygScoreMapper.selectYgScoreList(ygScore);
    }

    /**
     * 新增员工评分
     * 
     * @param ygScore 员工评分
     * @return 结果
     */
    @Override
    public int insertYgScore(YgScore ygScore)
    {
        return ygScoreMapper.insertYgScore(ygScore);
    }

    /**
     * 修改员工评分
     * 
     * @param ygScore 员工评分
     * @return 结果
     */
    @Override
    public int updateYgScore(YgScore ygScore)
    {
        return ygScoreMapper.updateYgScore(ygScore);
    }

    /**
     * 批量删除员工评分
     * 
     * @param scoreIds 需要删除的员工评分主键
     * @return 结果
     */
    @Override
    public int deleteYgScoreByScoreIds(Long[] scoreIds)
    {
        return ygScoreMapper.deleteYgScoreByScoreIds(scoreIds);
    }

    /**
     * 删除员工评分信息
     * 
     * @param scoreId 员工评分主键
     * @return 结果
     */
    @Override
    public int deleteYgScoreByScoreId(Long scoreId)
    {
        return ygScoreMapper.deleteYgScoreByScoreId(scoreId);
    }
}
